.flex {
    display: flex;
}

.min-w-0 {
    min-width: 0;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-draft-detail.pc {
    .title {
        margin-bottom: 16px;
    }
}

.multiple-ellipsis {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;

    &.draw {
        display: block;
    }
}

.items-center {
    align-items: center;
}

.items-baseline {
    align-items: baseline;
}

.flex-1 {
    flex: 1 1 0%;
}


a {
    color: #222;
    background-color: transparent;
    text-decoration: none;
    outline: none;
    cursor: pointer;
    transition: color .3s;
    -webkit-text-decoration-skip: objects;
}

a:active,
a:hover {
    outline: 0;
    text-decoration: none;
}

svg:not(:root) {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: .5em;
    color: rgba(0, 0, 0, .85);
    font-weight: 500;
}


.editor-cards * {
    box-sizing: border-box;

    .card-container {
        white-space: normal;
        transform: translateZ(0);
    }

    a {
        text-decoration: none !important;
    }

    .cover-box {
        font-size: 42px;
    }

    .default-cover {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        line-height: 100%;
        font-size: inherit;
        color: #c9c9c9;
        background-color: #f4f4f4;
        text-align: center;
        z-index: -1;

        &::before {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
    }

    .mall-card-holder {
        display: block;

        .mall-card-ctnr {
            padding: 12px;
            background-color: rgba(246, 247, 248, .8);
            border-radius: 6px;
            box-sizing: border-box;
            display: flex;
        }

        .cover-box {
            position: relative;
            width: 64px;
            height: 64px;
        }

        .cover-img {
            width: 100%;
            height: 100%;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: 50%;
            border-radius: 4px 0 0 4px;
        }

        .mall-cnt-box {
            padding: 0 12px;
            min-width: 0;
            text-align: left;
        }

        .mall-name {
            margin-bottom: 3px;
            font-size: 15px;
            color: #18191c;
        }

        .mall-desc {
            margin-bottom: 3px;
            font-size: 12px;
            color: #999;
            color: #9499a0;
        }

        .mall-price-box {
            font-size: 12px;
            color: #00aeec;
        }

        .price {
            margin-left: 2px;
            font-size: 14px;
            transform: translateY(1px);
        }
    }

    .row-video-holder {
        .row-video-ctnr {
            height: 88px;
            background-color: rgba(246, 247, 248, .8);
            padding: 12px;
            border-radius: 6px;
        }

        .row-video-left {
            width: 114px;
            height: 100%;
            background-repeat: no-repeat;
            background-size: cover;
            border-radius: 4px;
            overflow: hidden;
        }

        .row-video-mask {
            position: relative;
            width: 100%;
            height: 100%;

            &.by-pause {
                background-color: rgba(0, 0, 0, .3);
            }
        }

        .row-video-duration {
            background: rgba(0, 0, 0, .4);
            border-radius: 2px;
            bottom: 4px;
            color: #fff;
            font-size: 12px;
            padding: 1px 2px;
            position: absolute;
            right: 4px;
        }

        .row-video-right {
            padding: 0 12px;
            height: 100%;
            box-sizing: border-box;
            display: flex;
            flex: 1;
            flex-direction: column;
            justify-content: center;
        }

        .row-video-tit {
            color: #18191c;
            font-size: 14px;
            line-height: 18px;
            height: 18px;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: break-all;
        }

        .row-video-infos {
            font-size: 12px;
            line-height: 12px;
            color: #9499a0;
            margin-top: 8px;
        }

        .video-play-infos {
            margin-top: 3px;
        }
    }

    .live-card-holder {
        display: block;
        height: 88px;
        background-color: rgba(246, 247, 248, .8);
        padding: 12px;
        border-radius: 6px;
        overflow: hidden;

        .live-card-ctnr {
            height: 100%;
        }

        .cover-box {
            position: relative;
            width: 114px;
            height: 100%;
            border-radius: 4px;
            overflow: hidden;
        }

        .cover-img {
            position: relative;
            height: 100%;
            background-size: cover;
            background-repeat: no-repeat;
            border-radius: 6px 0 0 6px;
            overflow: hidden;

            &::after {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, .3);
            }
        }

        .live-cnt-ctnr {
            padding-left: 12px;
            color: #505050;
            text-align: left;
        }

        .live-title {
            color: #18191c;
            font-size: 14px;
            line-height: 18px;
            height: 18px;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: break-all;
        }

        .live-up {
            margin-top: 6px;
            font-size: 12px;
            line-height: 17px;
            color: #9499a0;

            svg {
                vertical-align: text-bottom;
            }
        }

        .live-room-info {
            margin-top: 6px;
            color: #9499a0;
            font-size: 12px;
            font-style: normal;
            font-weight: 400;
            line-height: 16px;
        }
    }

    .article-card-holder {
        height: auto;
        overflow: hidden;

        .article-card-wrap {
            padding: 12px;
            background-color: rgba(246, 247, 248, .8);
            border-radius: 6px;
            box-sizing: border-box;
            display: flex;

            .card-left {
                flex: 1;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }

            .title {
                line-height: 21px;
                font-size: 15px;
                color: #2f3238;
                text-align: left;
            }

            .card-right {
                flex-shrink: 0;
            }

            .cover-wrap {
                width: 74px;
                height: 56px;
                border-radius: 4px;
                overflow: hidden;
            }
        }

        .card-status {
            position: relative;
            margin-top: 4px;
            box-sizing: border-box;
            font-size: 12px;
            color: #999;
            line-height: 1;

            svg {
                margin-right: 2px;
            }
        }

        .article-pic {
            width: 100%;
            height: 100%;
            background-size: contain;
            background-repeat: no-repeat;
        }
    }
}